<text><span class="style2"></span><span class="style3"> </span><span class="style20">"</span><span class="style3"> Éditer les scripts 2.1.2 </span><span class="style20">"</span><span class="style3"></span><span class="style1">édite </span><span class="style4">toutes</span><span class="style1"> les piles mais ne modifie en rien les piles éditées. L'édition peut se faire sur une pile en service. Éditer les scripts est également capable de s'auto-éditer. Le pied, non ?Ainsi, vous pourrez connaître tous les secrets des piles et vous pourrez avoir un récapitula- tif de vos scripts si vous programmez vos propres piles.Le document enregistré est au format TEXT. En cas de document "lourd" (supérieur à 32000 caractères), Teachtext ou SimpleText ne pourront pas l'ouvrir. Si vous ne disposez pas d'une usine à gaz, où si vous n'avez pas envie d'y recourir, vous pouvez créer un document partitionné. </span><span class="style3">Pour ce faire, enfoncez d'abord la touche « Option » (alt) puis cliquez le bouton "Editer les scripts".</span><span class="style1"></span><span class="style5"></span><span class="style6"></span><span class="style1">• "</span><span class="style3">Éditer les scripts 2.1.2</span><span class="style1">", créé avec Hypercard™ 2.2 est </span><span class="style3">totalement</span><span class="style1"> compatible Hypercard™ 2.0 minimum où Hypercard Player™ ( bien qu'avec ce dernier, vous ne puissiez pas programmer !!!!) .</span><span class="style7"></span><span class="style8">Enjoy ! Roberto :-&</span><span class="style9"></span><span class="style10"> </span><span class="style11">Les commandes et fonctions externes utilisées:</span><span class="style8"></span><span class="style5"> </span><span class="style8"> </span><span class="style9"> Son XCMD. © Auteur inconnu - Non référencée. AddColor XCMD. © Apple Computer Inc. 1991-1993. fileDataSize XFCN. © 1992 BungDabba Productions, v0.12 by Mike Byrne. Traduction: Roberto Minotti.</span><span class="style12"> ßéta testeur et ajusteur: Jean Patrick "The Killer" Wendt. Autre ßéta testeur: Jean Pierre Ramognino. </span><span class="style19"></span><span class="style14">Historique</span><span class="style12">:• Version 1.2: - correction de plusieurs bogues sous Hypercard Player™ ( toujours lui ! ).- correction d'un bogue sous Hypercard™ 2.0 pouvant déclarer un script inexistant.- correction d'un bogue empêchant l'affichage couleur.• Version 2.0:- possibilité de créer des documents partitionnés pour avoir la possibilité de les ouvrir avec SimpleText. - correction des fôtes d'ortografes !• Version 2.1.2:- amélioration interface/communication utilisateur.- débogage du partitionnement.- débogage chemins ( les spécialistes comprendront cette plaie hypercardienne! ) </span><span class="style14">Diffusion</span><span class="style12">:Éditer les scripts 2.1.2 est en diffusion et copie libre.Ne diffusez que des copies non modifiées, tant au niveau des scripts, du contenu que des ressources.</span><span class="style14">Support technique</span><span class="style12">:Si vous rencontrez un où des messages d'erreur, merci infiniment de me les rapporter en précisant si possible les "manipulations" qui ont précédé, ainsi que votre configuration logicielle (version d' Hypercard™ utilisée). Précisez bien si vous utilisez une version Player™ ainsi que son numéro de version.Renseignement(s), rapport(s) de bogue(s) et suggestion(s): </span><span class="style9">- Adresse éléctronique: </span><span class="style15"><a href="#" class="group">rMinotti@MPadLink.TechLink.fr</a></span><span class="style9">- Adresse postale:</span><span class="style15"><a href="#" class="group">Roberto Minotti2, rue de la République69190 Saint-Fons. F.</a></span><span class="style9"></span></text>
</content>
<name>deux</name>
<script></script>
</card>
card_3005.xml
<?xml version="1.0" encoding="utf-8" ?>
<!DOCTYPE card PUBLIC "-//Apple, Inc.//DTD card V 2.0//EN" "" >
<script>on mouseUpif the optionkey is down thenpalette "Bonus"show window "Bonus" at -111,0elseanswer "Bien joué ! vous avez gagné le SUPER MÉGA BONUS." with "Késako ???"palette "Bonus"show window "Bonus" at -111,0set cursor to watchwait 1 secondsplay "sifflement"answer "Alors, pas mal, hein ? Et c'est opérationnel !"&return&&return&&return&¬"• Cette palette reste affichée si vous ouvrez d'autres piles. •" with "Bonus"play "Hourra"end ifend mouseUp</script>
</part>
<part>
<id>5</id>
<type>button</type>
<visible> <true /> </visible>
<reserved5> 0 </reserved5>
<reserved4> 0 </reserved4>
<reserved3> 0 </reserved3>
<reserved2> 0 </reserved2>
<reserved1> 0 </reserved1>
<enabled> <true /> </enabled>
<rect>
<left>68</left>
<top>118</top>
<right>261</right>
<bottom>141</bottom>
</rect>
<style>shadow</style>
<showName> <true /> </showName>
<highlight> <false /> </highlight>
<autoHighlight> <true /> </autoHighlight>
<sharedHighlight> <true /> </sharedHighlight>
<family>0</family>
<titleWidth>0</titleWidth>
<icon>0</icon>
<textAlign>center</textAlign>
<font>Chicago</font>
<textSize>12</textSize>
<textStyle>plain</textStyle>
<name>Niveau sonore des alertes</name>
<script>on mouseUpbeepSonbeepend mouseUp</script>
</part>
<part>
<id>6</id>
<type>button</type>
<visible> <true /> </visible>
<reserved5> 0 </reserved5>
<reserved4> 0 </reserved4>
<reserved3> 0 </reserved3>
<reserved2> 0 </reserved2>
<reserved1> 0 </reserved1>
<enabled> <true /> </enabled>
<rect>
<left>68</left>
<top>149</top>
<right>260</right>
<bottom>171</bottom>
</rect>
<style>shadow</style>
<showName> <true /> </showName>
<highlight> <false /> </highlight>
<autoHighlight> <true /> </autoHighlight>
<sharedHighlight> <true /> </sharedHighlight>
<family>0</family>
<titleWidth>0</titleWidth>
<icon>0</icon>
<textAlign>center</textAlign>
<font>Chicago</font>
<textSize>12</textSize>
<textStyle>plain</textStyle>
<name>Taille de la section données</name>
<script>on mouseUpglobal gXCMDErroranswer file "Choisissez le fichier, quel qu'il soit, dont vous désirez connaitre la taille de la section des données (Data Fork) :" --∆put it into roif ro is empty then exit mouseUpput fileDataSize(ro) into NumberOfBytesif gXCMDError is not empty thenanswer gXCMDErrorexit mouseUpend ifanswer "La taille de la section données du fichier « " & ro & " » est de " && NumberOfBytes/1000¬ --∆&& " Ko. (soit " && NumberOfBytes/1000000 && " Mo)." --∆put empty into roend mouseUp</script>
</part>
<part>
<id>8</id>
<type>field</type>
<visible> <true /> </visible>
<dontWrap> <true /> </dontWrap>
<dontSearch> <false /> </dontSearch>
<sharedText> <false /> </sharedText>
<fixedLineHeight> <true /> </fixedLineHeight>
<autoTab> <false /> </autoTab>
<lockText> <true /> </lockText>
<rect>
<left>65532</left>
<top>0</top>
<right>320</right>
<bottom>115</bottom>
</rect>
<style>transparent</style>
<autoSelect> <false /> </autoSelect>
<showLines> <false /> </showLines>
<wideMargins> <false /> </wideMargins>
<multipleLines> <false /> </multipleLines>
<reservedFamily> 0 </reservedFamily>
<titleWidth>0</titleWidth>
<icon>0</icon>
<textAlign>center</textAlign>
<font>Geneva</font>
<textSize>12</textSize>
<textStyle>plain</textStyle>
<textHeight>16</textHeight>
<name></name>
<script></script>
</part>
<part>
<id>7</id>
<type>button</type>
<visible> <true /> </visible>
<reserved5> 0 </reserved5>
<reserved4> 0 </reserved4>
<reserved3> 0 </reserved3>
<reserved2> 0 </reserved2>
<reserved1> 0 </reserved1>
<enabled> <true /> </enabled>
<rect>
<left>68</left>
<top>178</top>
<right>260</right>
<bottom>199</bottom>
</rect>
<style>shadow</style>
<showName> <true /> </showName>
<highlight> <false /> </highlight>
<autoHighlight> <true /> </autoHighlight>
<sharedHighlight> <true /> </sharedHighlight>
<family>0</family>
<titleWidth>0</titleWidth>
<icon>0</icon>
<textAlign>center</textAlign>
<font>Chicago</font>
<textSize>12</textSize>
<textStyle>plain</textStyle>
<name>Éditer les scripts</name>
<script>on mouseUpglobal FileName,TtxtLimit,Ro,Index,Partition,theExtractput No into Partitionput "" into adviceif the optionKey is down thenput yes into Partitionput ", avec partition automatique" into adviceend ifput "" into TtxtLimitput "" into theExtractset lockMessages to trueset lockRecent to truehide Msgpush cardlock screengo stack ("la pile à éditer" & advice)if the result ≠ "" thenexit mouseUpend ifset the cantAbort of this stack to trueput the short name of this stack into Ro -- the name of the target to editput ro into maxNamerepeat with i = 31 down to 24if the length of maxName = i then delete char i of maxNameend repeatask file "Enregistrer l'édition des scripts sous…" with maxName & "'Scpt"if the result ≠ "" thenpop cdset the cantAbort of this stack to falseexit mouseUpend ifput it into FileNameput 1 into Indexif Partition = yes then put validName(FileName) into FileNameopen file FileNameset cursor to watchput the time & " — " & the long date &return ¬&"◊ Document réalisé avec « Éditer les scripts » - Version 2.1.2 par Roberto Minotti & Jean Patrick Wendt. ◊" ¬& return & return & "Pour une parfaite lisibilité de ce document, utilisez la " ¬&"police Monaco 9 points." & return & return into theExtractput the length of theExtract into TtxtLimitwrite theExtract to file FileNameget the script of this stackif it = "" then put "Pas de script de Pile" into itput theLines(2) &&"SCRIPT DE PILE « " & Ro &" »" & theLines(2) &return¬& it & return into theExtractmayWriteExtractplay "Boing"play "Sifflement"answer firstAnswer() with "Suffisant" or "Continuer"if it is "Suffisant" thenclose file FileNamepop cdset the cantAbort of this stack to falseexit mouseUpend ifput the number of bgs of this stack into Nrepeat with i = 1 to Ngo bg igetAllScripts FOND,"bg",iput theLines(8) &return &return into theExtractmayWriteExtractend repeatput theLines(3) &" This is the End, my only friend. - J.Morrison. "¬&theLines(3) into theExtractmayWriteExtractclose file fileNamepop Cdplay "Sifflement"play "Hourra"answer lastAnswer() with "So good" -- ∆set the cantAbort of this stack to falseput "" into fileNameput "" into theExtracthide Msgend mouseUpon getAllScripts fOwner,owner,pscanScripts fOwner,owner,pput theLines(4) &return into theExtractmayWriteExtractrepeat with k = 1 to number of cds of this bggo cd (k) of this bgput the number of this cd into NumCdscanScripts CARTE,"cd",NumCdend repeatend getAllScriptson scanScripts fOwner,owner,pglobal EmptyList,fileName,theExtractput return & theLines(2) && fOwner&& p &&"«"&(the short name of (owner && p))¬&"»"&& theLines(2) &return into theExtractmayWriteExtractif script of (owner && p) = "" thenput "◊ " &fOwner&&"«"& the short name of (owner && p) & "»◊" after emptyListelseput return & theLines(2) && "SCRIPT DE " & fOwner && p ¬& return & script of (owner&&p) & return into theExtractmayWriteExtractend ifif the number of (owner && flds) ≠ 0 thenput theLines(2) && "LES CHAMPS DE " & fOwner & return into theExtractmayWriteExtractrepeat with j = 1 to number of (owner &&flds)set cursor to busygetObjScript fOwner,owner,CHAMP,Chp,"fld",jend repeatend ifif the number of (owner && btns) ≠ 0 thenput return &theLines(2) && "LES BOUTONS DE " & fOwner¬& return into theExtractmayWriteExtractrepeat with j = 1 to number of (owner &&btns)set cursor to busygetObjScript fOwner,owner,BOUTON,Btn,"btn",jend repeatend ifif EmptyList ≠ "" thenput return & "◊◊ Objet(s) dans"&&fOwner&&p&&"sans script : "¬& EmptyList &return into theExtractmayWriteExtractput "" into EmptyListend ifend scanScriptson getObjScript fOwner,owner,fObj,shortObj,obj,jglobal EmptyList,FileName,theExtractget script of (owner && obj && j)if it = "" or the number of words of it <5 thenput "◊ " &shortObj&&"«"& the short name of (owner && obj && j) & "»◊" after EmptyListexit getObjScriptelse put theLines(1) && fObj && j &" : «"& the short name of¬(owner && obj && j) &"»" & return & it & return into theExtractmayWriteExtractend getObjScripton mayWriteExtractglobal TtxtLimit, FileName,Partition,theExtractset cursor to watchput the length of theExtract into extractLengthadd extractLength to TtxtLimitif Partition = yes thenif TtxtLimit >31000 thenput extractLength-(TtxtLimit-31000) into cutCharput char 1 to (cutChar) of theExtract into part1get the number of lines of part1put line 1 to (it-1) of theExtract into part1put line (it) to (the number of lines of theExtract) of theExtract into part2put part1 into theExtractrepeat with j =(number of lines of part1) down to 1set cursor to busyif word 1 of line j of part1 = "on" thenput line 1 to j-1 of part1 into theExtractput line j to (the number of lines of part1)¬of part1 before part2exit repeatend ifend repeatwrite theExtract to file FileNameput part2 into theExtractcreateNewFilewrite theExtract to file FileNameput (the length of part2) + 60 into TtxtLimitelse if theExtract ≠ "" then write theExtract to file FileNameput "" into theExtractend ifif theExtract ≠ "" then write theExtract to file FileNameput "" into theExtractend mayWriteExtracton createNewFileglobal Filename,Index,Roset cursor to watchclose file FileNameadd 1 to Indexif Index >99 thenbeep 2answer "Les scripts de la pile «"&Ro&"» déjà récupérés, représentent 3 Mo de texte "¬&"enregistrés sur 99 fichiers." &return&return& "C'est le nombre maximum de partitions "¬&"autorisées par le programme …" with Désolépop cdset the cantAbort of this stack to falseexit to HyperCardend ifput Index into last word of FileNameopen file FileNamewrite "Suite "& Index &" des scripts de " & Ro &return&return to file FileNameend createNewFilefunction validName temprepeat with i = (the length of temp) down to 1if char i of temp ≠ ":" thenput char i of temp before itsNameelse exit repeatend repeatput length(itsName) - 28 into Kif K >0 thenrepeat Kdelete last char of tempend repeatend ifput " 1" after last word of tempreturn tempend validNamefunction firstAnswerglobal Ro,Index,TtxtLimit,Partitionput (round(TtxtLimit /102.4))/10 into PTxtput " • Le script de la pile « "& Ro &" » est édité •" &return into theAnswerif Partition = No thenput "Il fait " & Ptxt & " Ko."&return& "◊ SimpleText est limité à 31 Ko ; "¬&"pour une partition automatique, recommencez avec la touche Option." & return &return after theAnswerelse put " Il se trouve sur " &Index& " fichier(s)"¬&" éditable(s) par SimpleText." & return & return after theAnswerput "• Voulez-vous éditer la TOTALITÉ de la pile ?" after theAnswerput the length of TheAnswer -- mise au pointreturn theAnswerend firstAnswerfunction lastAnswerglobal Ro,Index,TtxtLimit,Partitionput (round(TtxtLimit /102.4))/10 into PTxtput " L'édition de tous les scripts de la pile «" &Ro ¬&"» est terminée." & return into theAnswerif Partition = No thenput "• Le fichier contient " &PTxt&" Ko de texte ; SimpleText "¬&"ne peut ouvrir plus de 31 Ko."& return& "• Pour partitionner, "¬&"recommencez avec la touche Option enfoncée."after theAnswerelseif index = 1 thenput return&"• Son fichier de "&PTxt& " Ko de texte "¬&"est directement éditable par SimpleText." after theAnswerelse put return&"• Elle est répartie sur "&index&" fichiers "¬&"directement éditables par SimpleText." after theAnswerend ifput the length of TheAnswer -- mise au pointreturn theAnswerend lastAnswerfunction theLines Qrepeat Qput "•-•-•-•-" after bulletsend repeatdelete last char of bulletsreturn bulletsend theLines</script>
</part>
<part>
<id>9</id>
<type>button</type>
<visible> <true /> </visible>
<reserved5> 0 </reserved5>
<reserved4> 0 </reserved4>
<reserved3> 0 </reserved3>
<reserved2> 0 </reserved2>
<reserved1> 0 </reserved1>
<enabled> <true /> </enabled>
<rect>
<left>34</left>
<top>19</top>
<right>55</right>
<bottom>40</bottom>
</rect>
<style>shadow</style>
<showName> <false /> </showName>
<highlight> <false /> </highlight>
<autoHighlight> <true /> </autoHighlight>
<sharedHighlight> <true /> </sharedHighlight>
<family>0</family>
<titleWidth>0</titleWidth>
<icon>0</icon>
<textAlign>center</textAlign>
<font>Chicago</font>
<textSize>12</textSize>
<textStyle>plain</textStyle>
<name></name>
<script>on mouseupplay "1" with loopgo card "deux"end mouseup</script>
</part>
<content>
<layer>card</layer>
<id>8</id>
<text><span class="style16">Éditer les scripts</span><span class="style17"> version 2.1.2 par </span><span class="style16">Roberto Minotti</span><span class="style17"> et </span><span class="style16">Jean Patrick Wendt</span><span class="style17"> Utilitaire d'aide à la programmation.des piles Hypercard™.</span></text>